#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
#include <math.h>

int main()
{
    int h, a;
    double b, f = 0, e, d = 0;
    scanf("%d", &h);
    for (a = 1; a <= 10; a++)
    {
        b = h * 1.0 / (pow(2, a - 1));
        d += b;
    }
    for (a = 1; a <= 9; a++)
    {
        e = h * 1.0 / pow(2, a);
        f += e;
    }
    printf("%g %g", f + d, e / 2.0);
